package com.entity;

import java.util.Date;

public class Orders {
    private Integer id; //订单id

    private Address addressid; //地址id（外键） 一个地址可以有多个订单   一个订单只能有一个地址

    private Userinfo uid;  //用户id（外键）

    private String shipname; //快递公司

    private Date ordertime;  //下单时间

    private Integer state; //订单状态

    private String note;  //备注

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Address getAddressid() {
        return addressid;
    }

    public void setAddressid(Address addressid) {
        this.addressid = addressid;
    }

    public Userinfo getUid() {
        return uid;
    }

    public void setUid(Userinfo uid) {
        this.uid = uid;
    }

    public String getShipname() {
        return shipname;
    }

    public void setShipname(String shipname) {
        this.shipname = shipname == null ? null : shipname.trim();
    }

    public Date getOrdertime() {
        return ordertime;
    }

    public void setOrdertime(Date ordertime) {
        this.ordertime = ordertime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note == null ? null : note.trim();
    }

}